package toubiao.domain.po.business;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;

@Entity
@Table(name = "sn_int") //对应保存的数据库名称
@Inheritance(strategy =InheritanceType.JOINED)
@DynamicUpdate(true)	
public class PoIntSn {

	private Long id;
	
	private Integer snInt;
	
	private int seq;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public Integer getSnInt() {
		return snInt;
	}

	public void setSnInt(Integer snInt) {
		this.snInt = snInt;
	}

	@Column(name="seq",nullable=false,columnDefinition="INT default 0")
	public int getSeq() {
		return seq;
	}

	public void setSeq(int seq) {
		this.seq = seq;
	}
	
}
